home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
swags_z.zip
/
STRINGS.SWG
/
0052_Convert REAL to STRING.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-09-26
|
825b
|
24 lines
{*****************************************************************************
* Function ...... RTOS()
* Purpose ....... To convert a REAL to a string
* Parameters .... nNum REAL to convert to string format
* nLength Length of resultant string
* nDec Decimal places
* Returns ....... <nNum> as a string, <nLength> long to <nDec> decimal places
* Notes ......... None
* Author ........ Martin Richardson
* Date .......... May 13, 1992
*****************************************************************************}
FUNCTION RTOS( nNum: REAL; nLength, nDec: INTEGER ): STRING;
VAR
s: ^STRING;
BEGIN
ASM
mov sp, bp
push ss
push WORD PTR @RESULT
END;
STR( nNum:nLength:nDec, s^ );
END;